{% extends "base.html" %}
{% block title %} {{year}} {{month}} - {{blog.title|escape}} {% endblock %}
{% block content%}
{% if entries %}
{% for entry in entries %}

        <div class="post" id="post-">

            <fieldset>

                <legend class='title'>
                <span style='font-size: large;'>
                    <a href="/{{ entry.link }}" rel="bookmark"
                        title="Permanent Link to {{entry.title}}">{{entry.title}}</a>
                        </span>
                </legend>

                <div class='capsule dateauthor'>
                   {{entry.date|datetz:"F jS, Y"}} by {{blog.author}}
                </div>
                
						<div class="entry">
			{{entry|excerpt_more:"(..More)"}}
						</div>


                <div class="postmetadata"
                    style='opacity: 0.4;'
                    onmouseover='this.style.opacity = 1.0;'
                    onmouseout='this.style.opacity = 0.4;'
                    >

                    <span class='capsule commentlink actbubble'><a href="/{{entry.link}}#comments">Comments({{entry.commentcount}})&#187;</a>
                    </span>

                    <input type='button' class='capsule actbubble cattrigger'
                        value='Categories &darr;'
                        onclick='fadeBlock("postcats-{{entry.key}}");'/>
                        
                       <input type='button' class='capsule actbubble cattrigger'
                            value='Tags &darr;'
                            onclick='fadeBlock("posttags-{{entry.key}}");'/>


                    <div id='postcats-{{entry.key}}' class='postcattags postcats'
                        style='display: none; opacity: 0;'>
{%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}                    </div>

                    {% if entry.strtags %}
                        <!-- inline style for easy JavaScript mods, without getting computed styles -->
                        <div id='posttags-{{entry.key}}' class='postcattags posttags' style='display: none; opacity: 0;'>
                            {%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a> 
                            {%endfor%}</div>
                    {%endif%}

                </div> <!-- postmetadata -->

            </fieldset>

        </div> <!-- post -->
        
        {% endfor %}



    <div class="navigation">
    {% if pager.next %}
                <span class='capsule actbubble' style='float: right;'>
<a href="?page={{ pager.next }}">Older Entries &raquo;</a>{% endif %}
</span>

{% if pager.prev %}
        <span class='capsule actbubble'><a href="?page={{ pager.prev }}">&laquo; Newer Entries</a>{% endif %}        
        </span>
    </div>

{% else %}
    <div class="post">
        <fieldset>
            <legend class='title'>404 Not Found</legend>
            <br/>
            <div class='entry'>
                <p>
                Sorry, but you are looking for something that isn't here.
                <br/>
                <br/>
                </p>
            </div>
        </fieldset>
    </div>

{% endif %}

{% endblock %}
